FROM python:3.10.11
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple
COPY . .
CMD ["gunicorn", "--workers=1", "--bind", "0.0.0.0:5000", "--access-logfile", "-", "--error-logfile", "-","--capture-output", "idp_server:app"]